<?php
include_once("team_repository.php");
$repTeam= new TeamRepository;
$teamID=$_POST['teamID'];
$team_name=$_POST['team_name'];
$divisionID=$_POST['division'];
$password=$_POST['password'];
$team_status=$_POST['team_status'.$teamID];


	$repTeam->updateTeam($teamID, $team_name, $divisionID, $team_status);
	if ($password!="")
		$repTeam->updateTeamPassword($teamID, $password);
	header('LOCATION:'.$_SERVER["HTTP_REFERER"]);

?>